import { createRouter, createWebHistory } from 'vue-router';
import IndexView from '../views/index/IndexView.vue';

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    // 首页 - 智能检测
    {
      path: '/',
      name: 'index',
      component: IndexView,
    },
    //  就业态势
    {
      path: '/employment',
      name: 'employment',
      component: () => import('../views/employment/EmploymentView.vue'),
    },
    // 安防管理
    {
      path: '/safety',
      name: 'safety',
      component: () => import('../views/safety/SafetyView.vue'),
    },
    //  设备运维
    {
      path: '/equipment',
      name: 'equipment',
      component: () => import('../views/equipment/equipmentView.vue'),
    }
  ]
});

export default router;             